<template>
	<div class="autograph">
		<div class="head">
			<router-link tag="div" to="/personal" class="rou"><</router-link>
			<div class="zd">个性签名</div>
			<div @click="demo" class="sx">保存</div>
		</div>
		<div class="con">
			<textarea name="" v-model="autograph" rows="4" placeholder="请输入您的签名" cols="44"></textarea>
		</div>
	</div>
</template>

<script>
	export default {
		name:"autograph",
		data(){
			return{
				autograph:""
			}
		},
		methods:{
			demo(){
				localStorage.setItem("autograph",this.autograph);
				alert("保存成功");
				window.location.href = "http://localhost:8080/#/personal";
			}
		}
	}
</script>

<style lang="less">
	.autograph{
		.con{
			textarea{
				/*width: 100%;*/
				resize:none;
				background: #fff;
				padding: 2/50rem 5/50rem;
				font-size: 16/50rem;
			}
		}
		.head{
			background: #3AAE95;
			overflow: hidden;
			height: 50/50rem;
			line-height: 50/50rem;
			div{
				float: left;
				font-size: 20/50rem;
				color:#fff;
			}
			.rou{
				margin-left: 10/50rem;
			}
			.zd{
				margin-left: 130/50rem;
			}
			.sx{
				margin-left: 80/50rem;
			}
		}
	}
</style>